package kr.ragne.framework;

import android.app.Activity;
import android.os.Bundle;

public class GameActivity extends Activity {
	GameView gameview;
	
	protected void onCreate(Bundle savedInstanceState) {
		gameview = new GameView(this, null);
		
//		SharedPreferences pref = getSharedPreferences("SaveState", 0);
		
		if(savedInstanceState != null){
//			gameview.mSaveList = (ArrayList<String>) savedInstanceState.getSerializable("mSaveList");
		}
		
		super.onCreate(savedInstanceState);
		setContentView(gameview);
	}
	
	@Override
	protected void onPause() {
		super.onPause();
	}
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
		gameview.mSoundBackGround.stop();
	}
	
	@Override
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		outState.putSerializable("mSaveList", gameview.mSaveList);
	}
}
